package com.stockz.core.dao;

import java.util.Collection;
import java.util.Date;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.stockz.core.model.Bar;

@Repository
public interface BarDao  {
	public void persist(Bar bar);
	public <T extends Collection<? extends Bar>> void persistAll(T barCollection);
	public Date getMaxBarDate();
	public List<Bar> getBarList(String code);
	public List<Bar> getBarList(String code, int maxCount);
}
